<template>
    <el-select v-model="modelValue">
        <el-option v-for="item in selectItem" :key="item.Id" :label="item.DictName" :value="item.DictValue"></el-option>
    </el-select>
</template>

<script setup lang="ts">
import { ref } from 'vue';
import dictinfoapi from '../api/dictinfoapi';

const modelValue = defineModel()
const {typeName} = defineProps({
    typeName:{
        type:String,
        required:true
    }
})
const selectItem = ref<any>()

dictinfoapi.TypeName(typeName)
.then(res=>{
    selectItem.value = res.data
})
</script>

<style scoped>

</style>